﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;
using log4net.Config;

[assembly:log4net.Config.XmlConfigurator(Watch =true)]
namespace Common
{
    public class Log
    {
        public static ILog log = log4net.LogManager.GetLogger("Log");
        public static void WriteMessage(string message)
        {
            log.Info(message);
        }

        public static void WriteException(Exception ex)
        {
            log.Error(ex.Message);
        }
    }
}
